﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DelegateApp2
{
    public partial class FrmChild : Form
    {
        public FrmChild(int num)
        {
            InitializeComponent();
            this.Text += $"[{num}]";
        }
        //【2】编写具体方法(公有化)
        public void ReceiveMsg(string data)
        {
            this.txtContent.Text += data + "\r\n";
        }
    }
}
